import Vue from 'vue'
import Router from 'vue-router'
const Index = () => import('@/page/index/index.vue');
const IndexArticles = () => import('@/page/index/indexArticles.vue');
Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    {path:'/',
    redirect:'/index'},
    {
      path: '/',
      name: 'Index',
      component: Index,
      children:[
        {
          path: 'index',
          component: IndexArticles,
          meta:{}
        },
        {
          path: 'category',
          component: IndexArticles,
          meta:{}
        },
        {
          path: 'about',
          component: IndexArticles,
          meta:{}
        }
      ]
    }
  ]
})
